<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>
  p{
    font-size: 70px;
  }
</style>
<body>
  <div id="app">
 <p>{{world}}</p>
 <button  @click="toggleMirror" >逆转世界</button>
  </div>

   <script src="../vue.js"></script>
   <script>
    const app = new Vue({
      el: '#app',
      data: {
       world: 'Hello,World'
      },
      methods: {
        toggleMirror(){
          this.world = this.world.split('').reverse().join('')
        }
      },
     
    })
  </script>
</body>
</html>